package com.x.provider.api.general.enums;

import com.x.core.enums.IntegerEnum;

public enum ItemToggleRelationTypeEnum implements IntegerEnum {
    STAR(1),
    CUSTOMER_CUSTOMER_SAY_HI(2),
    ;

    private Integer value;

    ItemToggleRelationTypeEnum(Integer value){
        this.value = value;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public static ItemToggleRelationTypeEnum valueOf(Integer relation){
        for (ItemToggleRelationTypeEnum item: ItemToggleRelationTypeEnum.values()) {
            if (item.getValue().equals(relation)){
                return item;
            }
        }
        return null;
    }
}
